package org.springframework.beans.factory.util;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/11/13
 */
public class Objects {
    public static <T> T requireNonNull(T obj, String message) {
        if (obj == null||"".equals(obj))
            throw new RuntimeException(message);
        return obj;
    }

    public static void noEmpty(Object[]objs, String message) {
        if (objs == null||objs.length==0)
            throw new RuntimeException(message);
    }

}
